package com.shen.nettysocketchat

import androidx.multidex.MultiDexApplication

/**
 * 类描述
 */
class NettyChatApp : MultiDexApplication() {
    override fun onCreate() {
        super.onCreate()
        instance = this
    }

    companion object {
        private var instance: NettyChatApp? = null
        fun sharedInstance(): NettyChatApp? {
            checkNotNull(instance) { "app not init..." }
            return instance
        }
    }
}